quartz: Let CSD windows be fullscreen
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Feb 2017 22:07:55 +0000 (17:07 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Mar 2017 16:46:31 +0000 (11:46 -0500)
I've found that I need this patch to make it possible for
windows with headerbar to be made fullscreen on OS X.

https://bugzilla.gnome.org/show_bug.cgi?id=779383

gdk/quartz/gdkwindow-quartz.c

index 515a779aec03917f3d9f7f646ab2f771612e4ab0..5f3efd8011168d5a4265ecf243fe59e171c3088f 100644 (file)
@@ -2272,7 +2272,10 @@ gdk_quartz_window_set_decorations (GdkWindow       *window,
         }
 
       if (new_mask == NSBorderlessWindowMask)
-        [impl->toplevel setContentSize:rect.size];
+        {
+          [impl->toplevel setContentSize:rect.size];
+          [impl->toplevel setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
+        }
       else
         [impl->toplevel setFrame:rect display:YES];